import React, { Component } from 'react'

export default class App extends Component {

    // add = (val,e)=>{
    //     console.log(val, e, this);
    // }

    add = function(val,e){
        console.log(val, e, this);
    }

  render() {
    return (
      <div>
        App

        <button onClick={(e)=>{
            this.add(11111,e)
        }}>点击传参</button>
      </div>
    )
  }
}
